home *** CD-ROM | disk | FTP | other *** search
- unit STAObjectImpl;
-
- interface
-
- uses
- Windows, ActiveX, Classes, ComObj, MultipleSTAServer_TLB, StdVcl;
-
- type
- TSTAObject = class(TTypedComObject, ISTAObject)
- protected
- procedure Foo; safecall;
- {Declare ISTATest methods here}
- end;
-
- implementation
-
- uses
- ComServ, STAThread;
-
- procedure TSTAObject.Foo;
- begin
-
- end;
-
- initialization
- TTypedComObjectFactory2.Create(ComServer, TSTAObject, Class_STAObject,
- ciMultiInstance, tmApartment);
- end.
-